package com.management.platform.enums;

/**
 * 返回异常结果枚举
 */
public enum LoginResultEnum {

  UNKNOWN_ERROR("0","未知错误"),
  PARAM_ERROR("403","参数不正确"),

  LOGIN_ERROR("403","登陆错误，请登陆!"),
  UNKNOWN_USER_ERROR("400","该用户不存在"),
  PASSWORD_ERROR("400","密码错误"),

  USER_PASSWORD_ERROR("400","用户名或密码错误"),

  USER_PASSWORD_NOT_EMPTY("403","账号或者密码不能为空"),

  VRIFYCODE_ERROR("400","验证码错误"),

  ARTICLE_IS_DELETE("400","文章可能已经被删除"),
  ROLE_ERROR("500","权限不足"),
  CATEGORY_IS_EXIT("403","该分类依据存在"),
  IMG_NOT_EMPTY("403","文件不能为空"),
  IMG_FORMAT_ERROR("403","图片格式错误"),
  SAVE_IMG_ERROE("403","保存图片出错"),
  ;
  /**状态码*/
  private String code;
  /**错误信息*/
  private String msg;

  LoginResultEnum(String code, String msg) {
    this.code = code;
    this.msg = msg;
  }

  public String getCode() {
    return code;
  }

  public String getMsg() {
    return msg;
  }

}
